const {config,gulp,sass,rename,assetRev,concat} = require("./gulp.config.js") ;
const {src,dest} = gulp;
exports.compileSass = function(){
	return src([config.srcPath + 'sass/**/*.{scss,css}'])
		.pipe(sass({
			outputStyle: 'expanded'
		}).on('error', sass.logError))
		.pipe(assetRev())
		.pipe(dest(config.srcPath + 'css'))
		.pipe(sass({
			outputStyle: 'compressed'
		}).on('error', sass.logError))
		.pipe(rename({
			suffix: '.min'
		}))
		.pipe(dest(config.srcPath + 'css/min'))
		.pipe(concat('main.min.css'))
		.pipe(dest(config.srcPath + 'css'))
} 